﻿using System.Web.Mvc;

namespace Azure.Online.Web.Routing {
    public class SiteUrlHelper {
        protected readonly UrlHelper Helper;

        public SiteUrlHelper(UrlHelper helper) {
            this.Helper = helper;
        }

        protected string RouteUrl(string key, object routeValues = null) {
            return this.Helper.RouteUrl(key, routeValues);
        }

        protected string ToAction(string action, string controller) {
            return this.Helper.RouteUrl("Default", new { controller, action });
        }
    }
}